package org.dromara.xyyw.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.xyyw.domain.XyywShoppingCart;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 购物车视图对象 xyyw_shopping_cart
 *
 * @author yf
 * @date 2024-05-29
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XyywShoppingCart.class)
public class XyywShoppingCartVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 购物车ID
     */
    @ExcelProperty(value = "购物车ID")
    private Integer shoppingCartId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "商品ID")
    private Integer productId;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Integer quantity;

    /**
     * 小计金额
     */
    @ExcelProperty(value = "小计金额")
    private BigDecimal subtotal;

    /**
     * 加入购物车时间
     */
    @ExcelProperty(value = "加入购物车时间")
    private Date addToCartTime;

    /**
     * 购物车项状态(正常、已结算、已删除)
     */
    @ExcelProperty(value = "购物车项状态(正常、已结算、已删除)")
    private String cartItemStatus;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

}
